package com.huang.decorator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>红色形状的装饰者</p>
 *
 * @author aneng huang
 * @since 2020-10-28 16:50:08
 */
public class RedShapeDecorator extends ShapeDecorator {

    private static final Logger logger = LoggerFactory.getLogger(RedShapeDecorator.class);

    public RedShapeDecorator(Shape shapeDecorator) {
        super(shapeDecorator);
    }

    @Override
    public void draw() {
        super.draw();
        setRedBorder();
    }

    /**
     * 设置红色的边框
     */
    private void setRedBorder() {
        logger.info("红色的装饰者增强方法！");
        logger.info("设置边框的颜色为红色！");
    }
}
